package utils;

import com.alibaba.fastjson.JSONObject;

public class ResponseData {
    private   int code;
    private JSONObject body;
    public ResponseData(){
    }
    public ResponseData(int code, JSONObject body) {
        this.code = code;
        this.body = body;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public JSONObject getBody() {
        return body;
    }

    public void setBody(JSONObject body) {
        this.body = body;
    }

    @Override
    public String toString(){
        return "状态码:    "+code+"响应体内容:   "+body;
    }


}
